home *** CD-ROM | disk | FTP | other *** search
- ' ------------------------------------------------------------------------
- '
- ' APIGUIDE.BAS -- APIGUIDE.DLL API Declarations for Visual Basic
- '
- ' Copyright (C) 1992 Desaware
- '
- ' You have a royalty-free right to use, modify, reproduce and distribute
- ' this file (and/or any modified version) in any way you find useful,
- ' provided that you agree that Desaware and Ziff-Davis Press has no
- ' warranty, obligation or liability for its contents.
- ' Refer to the Ziff-Davis Visual Basic Programmer's Guide to the
- ' Windows API for further information.
- '
- ' ------------------------------------------------------------------------
-
- ' For VB 1.0, move these two constants to your global module
- Global Const CTLFLG_USESPALETTE% = 2
- Global Const CTLFLG_HASPALETTE% = 1
-
-
- Declare Function agGetControlHwnd% Lib "Apiguide.dll" (hctl As Control)
- Declare Function agGetInstance% Lib "Apiguide.dll" ()
- Declare Sub agCopyData Lib "Apiguide.dll" (source As Any, dest As Any, ByVal nCount%)
- Declare Sub agCopyDataBynum Lib "Apiguide.dll" Alias "agCopyData" (ByVal source&, ByVal dest&, ByVal nCount%)
- Declare Function agGetAddressForObject& Lib "Apiguide.dll" (object As Any)
- Declare Function agGetAddressForInteger& Lib "Apiguide.dll" Alias "agGetAddressForObject" (intnum%)
- Declare Function agGetAddressForLong& Lib "Apiguide.dll" Alias "agGetAddressForObject" (intnum&)
- Declare Function agGetAddressForLPSTR& Lib "Apiguide.dll" Alias "agGetAddressForObject" (ByVal lpstring$)
- Declare Function agGetAddressForVBString& Lib "Apiguide.dll" (vbstring$)
- Declare Function agGetStringFromLPSTR$ Lib "Apiguide.dll" (ByVal lpstring$)
- Declare Function agGetControlName$ Lib "Apiguide.dll" (ByVal hWnd%)
- Declare Function agPOINTAPItoLong& Lib "Apiguide.dll" (pt As POINTAPI)
- Declare Sub agDWORDto2Integers Lib "Apiguide.dll" (ByVal l&, lw%, lh%)
- Declare Function agXPixelsToTwips& Lib "Apiguide.dll" (ByVal pixels%)
- Declare Function agYPixelsToTwips& Lib "Apiguide.dll" (ByVal pixels%)
- Declare Function agXTwipsToPixels% Lib "Apiguide.dll" (ByVal twips&)
- Declare Function agYTwipsToPixels% Lib "Apiguide.dll" (ByVal twips&)
- Declare Function agDeviceCapabilities& Lib "Apiguide.dll" (ByVal hlib%, ByVal lpszDevice$, ByVal lpszPort$, ByVal fwCapability%, ByVal lpszOutput&, ByVal lpdm&)
- Declare Function agDeviceMode% Lib "Apiguide.dll" (ByVal hWnd%, ByVal hModule%, ByVal lpszDevice$, ByVal lpszOutput$)
- Declare Function agExtDeviceMode% Lib "Apiguide.dll" (ByVal hWnd%, ByVal hDriver%, ByVal lpdmOutput&, ByVal lpszDevice$, ByVal lpszPort$, ByVal lpdmInput&, ByVal lpszProfile&, ByVal fwMode%)
- Declare Function agInp% Lib "Apiguide.dll" (ByVal portid%)
- Declare Function agInpw% Lib "Apiguide.dll" (ByVal portid%)
- Declare Sub agOutp Lib "Apiguide.dll" (ByVal portid%, ByVal outval%)
- Declare Sub agOutpw Lib "Apiguide.dll" (ByVal portid%, ByVal outval%)
- Declare Function agHugeOffset& Lib "Apiguide.dll" (ByVal addr&, ByVal offset&)
- Declare Function agVBGetVersion% Lib "Apiguide.dll" ()
- Declare Function agVBSendControlMsg& Lib "Apiguide.dll" (ctl As Control, ByVal msg%, ByVal wp%, ByVal lp&)
- Declare Function agVBSetControlFlags& Lib "Apiguide.dll" (ctl As Control, ByVal mask&, ByVal value&)
- Declare Sub agVBScreenToClient Lib "Apiguide.dll" (ctl As Control, pap As POINTAPI)
- Declare Sub agVBClientToScreen Lib "Apiguide.dll" (ctl As Control, pap As POINTAPI)
- Declare Function dwVBSetControlFlags& Lib "Apiguide.dll" (ctl As Control, ByVal mask&, ByVal value&)
-
-